Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider of updates as a dimension to metrics. #6199

Merged
merged 7 commits into from
Nov 7, 2024

Conversation

eibakke
Copy link
Contributor

@eibakke eibakke commented Oct 28, 2024

Summary

This PR adds the provider (datasource for SIRI updates) as a dimension to some of the metrics from the realtime updater system. The added detail on the metrics can be enabled in the configuration for the realtime updater.

Issue

Closes #4656

Unit tests

Updated existing unit tests to work with new provider and ran locally to make sure updates are applied as expected.

Documentation

Documented the new flag that enables the detailed metrics.

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 61.90476% with 40 lines in your changes missing coverage. Please review.

Project coverage is 69.92%. Comparing base (ee53e50) to head (5867d69).
Report is 46 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...dater/trip/metrics/StreamingTripUpdateMetrics.java 0.00% 32 Missing ⚠️
...nner/updater/siri/SiriTimetableSnapshotSource.java 66.66% 2 Missing and 1 partial ⚠️
...opentripplanner/updater/siri/AddedTripBuilder.java 87.50% 1 Missing ⚠️
...ntripplanner/updater/siri/ModifiedTripBuilder.java 85.71% 1 Missing ⚠️
...ner/updater/spi/DataValidationExceptionMapper.java 66.66% 1 Missing ⚠️
.../org/opentripplanner/updater/spi/UpdateResult.java 94.73% 1 Missing ⚠️
...tripplanner/updater/trip/UrlUpdaterParameters.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6199      +/-   ##
=============================================
+ Coverage      69.91%   69.92%   +0.01%     
- Complexity     17736    17742       +6     
=============================================
  Files           2006     2007       +1     
  Lines          75526    75567      +41     
  Branches        7730     7730              
=============================================
+ Hits           52804    52843      +39     
- Misses         20036    20038       +2     
  Partials        2686     2686              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eibakke eibakke marked this pull request as ready for review October 29, 2024 09:27
@eibakke eibakke requested a review from a team as a code owner October 29, 2024 09:27
@optionsome optionsome requested a review from t2gran October 31, 2024 15:28
Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good but would it be possible to run it in an Entur environment first?

@eibakke eibakke added Entur Test This is currently being tested at Entur Improvement labels Nov 7, 2024
@eibakke eibakke added this to the 2.7 (next release) milestone Nov 7, 2024
@eibakke eibakke merged commit 5438e02 into opentripplanner:dev-2.x Nov 7, 2024
5 checks passed
@eibakke eibakke deleted the metricz branch November 7, 2024 14:07
t2gran pushed a commit that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Entur Test This is currently being tested at Entur Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add customizable tags to realtime-metrics?
3 participants